#!/usr/bin/perl -w
my $res;

$res=`shutdown.sh`;
sleep 10;

$res=`cp /home/sujeet/workspace/sujeet-learn-sorting/soap/target/soaptrial-1.0-SNAPSHOT.jar /opt/downloads/apache-tomcat-6.0.28/lib/`;
print $res;

$res=`startup.sh`;
sleep 10;

my $CLASSPATH="/opt/downloads/soap-2_2/lib/soap.jar:/opt/downloads/xerces/tools/xercesImpl.jar:/home/sujeet/.m2/repository/jaf/activation/1.1.1/activation-1.1.1.jar:/home/sujeet/.m2/repository/javax/mail/mail/1.4.3/mail-1.4.3.jar";

$res=`java -cp $CLASSPATH org.apache.soap.server.ServiceManagerClient http://localhost:6464/soap/servlet/rpcrouter deploy src/main/java/com/sujeet/learning/soap/CDCatalogDD.xml`;

print $res;

$res=`java -cp $CLASSPATH org.apache.soap.server.ServiceManagerClient http://localhost:6464/soap/servlet/rpcrouter list`;

print $res;

